package com.subalien.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.subalien.client.dto.PlayerDto;
import com.subalien.client.dto.SubmarineDto;

public interface GameServiceAsync {
	void createPlayer(String email, String name, AsyncCallback<Long> callback);

	void getPlayer(String email, AsyncCallback<PlayerDto> callback);

	void createSubmarine(long playerId, AsyncCallback<Void> callback);

	void getSubmarine(long playerId, AsyncCallback<SubmarineDto> callback);

	void updateSubmarine(SubmarineDto submarineDto, AsyncCallback<Void> callback);
}
